package com.geeguo.ebuilder.operation.business.tenant.tenantinfo.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class TenantInfoCreateDTO {

    @NotBlank(message = "编码不能为空")
    @Schema(title = "编码")
    private String code;

    @NotBlank(message = "名称不能为空")
    @Schema(title = "名称")
    private String name;

    @NotBlank(message = "域名不能为空")
    @Schema(title = "域名")
    private String domain;

    @Schema(title = "数据源ID")
    private String dataSourceId;

    @Schema(title = "配置")
    private String configJson;

    @NotNull(message = "启用状态（1：启用、2：停用）不能为空")
    @Schema(title = "启用状态（1：启用、2：停用）")
    private Integer state;
}

